package com.shiwaixiangcun.customer.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.shiwaixiangcun.customer.R;
import com.shiwaixiangcun.customer.entity.PaymentRecordEntity;

import java.util.List;

/**
 * Author   Administrator
 * Date     2018/4/10
 * Desc     eg
 *
 * @author Administrator
 */
public class AdapterPaymentRecord extends BaseQuickAdapter<PaymentRecordEntity, BaseViewHolder> {
    public AdapterPaymentRecord(@Nullable List<PaymentRecordEntity> data) {
        super(R.layout.item_payment_record, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, PaymentRecordEntity item) {

        helper.setText(R.id.tv_time, item.getName());
        helper.setText(R.id.tv_propety_name, item.getPropertyName());
        helper.setText(R.id.tv_price, "￥" + item.getBillAmount());

    }
}
